import 'package:flutter/material.dart';
import 'package:flutter_boost/flutter_boost.dart';
import 'package:flutter_module/config/custom_flutter_binding.dart';
import 'package:flutter_module/route/route_configs.dart';

void main() {
  CustomFlutterBinding();
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return FlutterBoostApp(
      RouteConfigs.routeFactory,
      initialRoute: 'mainPage',
      appBuilder: (home) => MaterialApp(
        home: home,
        debugShowCheckedModeBanner: true,
        builder: (context, child) {
          return home;
        },
      ),
    );
  }
}
